package com.test.domain;

import java.util.Date;

/**
 * 由于主题帖和回复都有一些共有属性，比如内容、作者、发表时间、用户IP地址，<br>
 * 因此，这里抽取出一个公共的类，topic和reply通过继承的方式获取，但是在数据库中还是分开的。
 * @author Administrator
 *
 */
public class Article {
	private Integer id;
	private User author;
	private String content;
	private Date postTime;
	private String ipAddress;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public User getAuthor() {
		return author;
	}
	public void setAuthor(User author) {
		this.author = author;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getPostTime() {
		return postTime;
	}
	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}
	public String getIpAddress() {
		return ipAddress;
	}
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}
	
}
